Simple Rules to Remember When Working with Indexes

نویسنده

  • Kirk Paul Lafler
چکیده

SAS users are always interested in learning techniques related to improving data access. One way of improving information retrieval from a SAS data set or table is to create and use an index. An index consists of one or more columns that are used to uniquely identify each row within a table. Functioning as a SAS object containing the values in one or more columns in a table, an index may be defined as numeric, character, or a combination of both. This presentation will emphasize the rules that users should know when creating and using indexes to make information retrieval more efficient. INTRODUCTION Given the large number of books and articles on SQL and SQL-related topics, how strange it is not to find more material related to indexes and their impact on WHERE clause processing. Certainly, these topics deserve additional attention in order to assist SQL users’ achieve a greater understanding in applying these powerful features in their database applications. Indexes are designed to improve the speed in which subsets of data are accessed. Rather than physically sorting a table (as performed by the ORDER BY clause or the BY statement in PROC SORT), an index is designed to set up a logical data arrangement without the need to physically sort it. This has the advantage of reducing CPU and memory requirements. It also reduces data access time when using WHERE clause processing. This paper presents elements essential to achieving a better understanding of indexes and their effect on WHERE clause processing. TABLES USED IN EXAMPLES The data used in all the examples in this paper consists of a selection of movies that I’ve viewed over the years, along with its actors. The Movies table consists of six columns: title, length, category, year, studio, and rating. Title, category, studio, and rating are defined as character columns with length and year being defined as numeric columns. The data stored in the Movies table is illustrated below. MOVIES Table Coders' Corner SAS Global Forum 2010

منابع مشابه

قواعد مالی مناسب برای سیاستگذاری مالی در ایران

 Unconformity with the financial rules, and the way in which the resources stemmed from oil export are introduced into government budget are two crucial issues which has been turned to be a sever impediment with respect to stabilization of financial policy. Majority of studies demonstrate the necessity for designing the fiscal rules to prevent the oversizing of government as well as to hinder t...

متن کامل

Fractionating working memory: consolidation and maintenance are independent processes.

In the present study, we required subjects to remember simple objects that were masked to interrupt consolidation and allow us to estimate the rate of information accrual in visual working memory. We compared a consolidation-baseline condition with a consolidation-during-maintenance condition in which subjects needed to remember a set of unmasked items and then were shown to-be-remembered maske...

متن کامل

Compression in visual working memory: using statistical regularities to form more efficient memory representations.

The information that individuals can hold in working memory is quite limited, but researchers have typically studied this capacity using simple objects or letter strings with no associations between them. However, in the real world there are strong associations and regularities in the input. In an information theoretic sense, regularities introduce redundancies that make the input more compress...

متن کامل

Monetary and Macro-prudential Policies: An Integrated Analysis

This paper studies the interaction between monetary and macro-prudential policies in a simple model with both nominal and financial frictions. The nominal friction gives rise to a conventional monetary policy objective emphasized in the New Keynesian literature. The financial friction, in the form of an occasionally binding collateral constraint, gives rise to a financial stability objective. ...

متن کامل

When simple things are meaningful: working memory strength predicts children's cognitive flexibility.

People often perseverate, repeating outdated behaviors despite correctly answering questions about rules they should be following. Children who perseverate are slower to respond to such questions than children who successfully switch to new rules, even after controlling for age and processing speed. Thus, switchers may have stronger working memory strength than perseverators, with stronger rule...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

متن کامل
عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2007